package com.gxa.service.impl;

import com.gxa.mapper.RecordMapper;
import com.gxa.pojo.Record;
import com.gxa.service.RecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 * User: shenhui
 * Date: 2020/09/22
 * Description
 * Version: V1.0
 */
@Service("recordService")
public class RecordServiceImpl implements RecordService {
    @Resource
    RecordMapper recordMapper = null;

    @Override
    public void RecordVisits(Record record) {
//        record = new Record(null, null, null, null, record.getDoctorId(), record.getTime(),
//                record.getHospital(), record.getChronicler(), record.getUrl(), record.getDesc());
        recordMapper.insert(record);

    }
}
